/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Dentist HIPAA Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getDentistHIPAAMember1()
 * @model extendedMetaData="name='DentistHIPAA_._member_._1'"
 * @generated
 */
public enum DentistHIPAAMember1 implements Enumerator {
	/**
	 * The '<em><b>122300000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_122300000N_VALUE
	 * @generated
	 * @ordered
	 */
	_122300000N(0, "_122300000N", "122300000N"),

	/**
	 * The '<em><b>1223D0001Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223D0001Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223D0001Y(1, "_1223D0001Y", "1223D0001Y"),

	/**
	 * The '<em><b>1223E0200Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223E0200Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223E0200Y(2, "_1223E0200Y", "1223E0200Y"),

	/**
	 * The '<em><b>1223X0400Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223X0400Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223X0400Y(3, "_1223X0400Y", "1223X0400Y"),

	/**
	 * The '<em><b>1223P0106Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0106Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0106Y(4, "_1223P0106Y", "1223P0106Y"),

	/**
	 * The '<em><b>1223P0221Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0221Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0221Y(5, "_1223P0221Y", "1223P0221Y"),

	/**
	 * The '<em><b>1223P0300Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223P0300Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223P0300Y(6, "_1223P0300Y", "1223P0300Y"),

	/**
	 * The '<em><b>1223S0112Y</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_1223S0112Y_VALUE
	 * @generated
	 * @ordered
	 */
	_1223S0112Y(7, "_1223S0112Y", "1223S0112Y");

	/**
	 * The '<em><b>122300000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>122300000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_122300000N
	 * @model literal="122300000N"
	 * @generated
	 * @ordered
	 */
	public static final int _122300000N_VALUE = 0;

	/**
	 * The '<em><b>1223D0001Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223D0001Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223D0001Y
	 * @model literal="1223D0001Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223D0001Y_VALUE = 1;

	/**
	 * The '<em><b>1223E0200Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223E0200Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223E0200Y
	 * @model literal="1223E0200Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223E0200Y_VALUE = 2;

	/**
	 * The '<em><b>1223X0400Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223X0400Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223X0400Y
	 * @model literal="1223X0400Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223X0400Y_VALUE = 3;

	/**
	 * The '<em><b>1223P0106Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0106Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0106Y
	 * @model literal="1223P0106Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0106Y_VALUE = 4;

	/**
	 * The '<em><b>1223P0221Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0221Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0221Y
	 * @model literal="1223P0221Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0221Y_VALUE = 5;

	/**
	 * The '<em><b>1223P0300Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223P0300Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223P0300Y
	 * @model literal="1223P0300Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223P0300Y_VALUE = 6;

	/**
	 * The '<em><b>1223S0112Y</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>1223S0112Y</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_1223S0112Y
	 * @model literal="1223S0112Y"
	 * @generated
	 * @ordered
	 */
	public static final int _1223S0112Y_VALUE = 7;

	/**
	 * An array of all the '<em><b>Dentist HIPAA Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final DentistHIPAAMember1[] VALUES_ARRAY =
		new DentistHIPAAMember1[] {
			_122300000N,
			_1223D0001Y,
			_1223E0200Y,
			_1223X0400Y,
			_1223P0106Y,
			_1223P0221Y,
			_1223P0300Y,
			_1223S0112Y,
		};

	/**
	 * A public read-only list of all the '<em><b>Dentist HIPAA Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<DentistHIPAAMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Dentist HIPAA Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistHIPAAMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentistHIPAAMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dentist HIPAA Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistHIPAAMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DentistHIPAAMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dentist HIPAA Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DentistHIPAAMember1 get(int value) {
		switch (value) {
			case _122300000N_VALUE: return _122300000N;
			case _1223D0001Y_VALUE: return _1223D0001Y;
			case _1223E0200Y_VALUE: return _1223E0200Y;
			case _1223X0400Y_VALUE: return _1223X0400Y;
			case _1223P0106Y_VALUE: return _1223P0106Y;
			case _1223P0221Y_VALUE: return _1223P0221Y;
			case _1223P0300Y_VALUE: return _1223P0300Y;
			case _1223S0112Y_VALUE: return _1223S0112Y;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private DentistHIPAAMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //DentistHIPAAMember1
